package br.al.proativa.Utilidades.dateTime;

public class IntervaloDeTempo{
	private Horario inicio;
	private Horario fim;
	//_________________________________________________________________________________________
	public IntervaloDeTempo(Horario inicio) {
		super();
		this.inicio = inicio;
	}
	//_________________________________________________________________________________________
	public IntervaloDeTempo(Horario inicio, Horario fim) {
		super();
		this.inicio = inicio;
		this.fim = fim;
	}
	//_________________________________________________________________________________________
	public Horario duracao(){
		return HorarioOperations.dif( this.inicio, this.fim );
	}
	//_________________________________________________________________________________________
	public Horario getInicio() {
		return inicio;
	}
	//_________________________________________________________________________________________
	public void setInicio(Horario inicio) {
		this.inicio = inicio;
	}
	//_________________________________________________________________________________________
	public Horario getFim() {
		return fim;
	}
	//_________________________________________________________________________________________
	public void setFim(Horario fim) {
		this.fim = fim;
	}
	//_________________________________________________________________________________________
}
